package gdma.hqdes.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author wangyue
 * @Version 3.0
 * @Date 2024-07-13
 */

@Data
public class UnitScore implements Serializable {

    public static final int STATUS_NOT_AUDITED = 0;
    public static final int STATUS_APPROVED = 1;
    public static final int STATUS_REFUSED = -1;
    public static final int STATUS_APPROVED2 = 2;
    public static final int STATUS_REFUSED2 = -2;
    public static final int STATUS_APPROVED3 = 3;
    public static final int STATUS_REFUSED3 = -3;

    @ApiModelProperty("id")
    @TableId
    Long id;

    @ApiModelProperty("项目id")
    Long projectId;

    @ApiModelProperty("单位id")
    Long unitId;

    @ApiModelProperty("指标项id")
    Long indexId;

    @ApiModelProperty("当前状态：0=已填报/待审核，1=审核通过，-1=审核驳回，2=地市审核通过，-2=地市审核驳回， 3=区县审核通过，-3=区县审核驳回")
    Integer status;

    @ApiModelProperty("得分")
    Float score;

    @ApiModelProperty("未审核得分")
    Float unauditedScore;

    @ApiModelProperty("更新时间")
    Date updatedTime;

    @TableField(exist = false)
    String updateMessage;

    @TableField(exist = false)
    List<UnitScoreArg> scoreArgs;

    @TableField(exist = false)
    List<UnitScoreAtt> scoreAtts;

}
